home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Freeware
/
First Page 2006 3.00
/
fp2006-final-3.00-setup.exe
/
{app}
/
Iscripts
/
Forms Misc
/
radio-buttons.izs
< prev
next >
Wrap
Text File
|
2005-09-28
|
3KB
|
129 lines
<!NOWIZARD>
<!TITLE>Radio Buttons
<!/TITLE>
<!DESCRIPTION>Tired of the same old ugly radio buttons in your forms? Try this short script.<!/DESCRIPTION>
<!CATEGORY>Forms<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL RADIO BUTTONS:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Evaldo Nunes (woodstock@globo.com) -->
<!-- Begin
function Check(x,y) {
for(i=1;i<=4;i++) {
z = "option" + i ;
document.all[z].src = "http://evrsoft.com/img/radio-buttons/off.gif" ;
}
document.all[x].src = "http://evrsoft.com/img/radio-buttons/on.gif"
document.all.action.value = x
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<input type=text name=action value="option1">
<p>
<font face="Tahoma" size="1">
<a href="#"><img border="0" src="http://evrsoft.com/img/radio-buttons/on.gif" width="11" height="11" name=option1 onclick=Check(this.name,"")></a>
option 1</font></p>
<p>
<font face="Tahoma" size="1"><a href="#">
<img border="0" src="http://evrsoft.com/img/radio-buttons/off.gif" width="11" height="11" name=option2 onclick=Check(this.name,"")></a>
option 2</font></p>
<p>
<font face="Tahoma" size="1">
<a href="#"><img border="0" src="http://evrsoft.com/img/radio-buttons/off.gif" width="11" height="11" name=option3 onclick=Check(this.name,"")></a>
option 3</font></p>
<p>
<font face="Tahoma" size="1">
<a href="#"><img border="0" src="http://evrsoft.com/img/radio-buttons/off.gif" width="11" height="11" name=option4 onclick=Check(this.name,"")></a>
option 4</font></p>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL RADIO BUTTONS:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Evaldo Nunes (woodstock@globo.com) -->
<!-- Begin
function Check(x,y) {
for(i=1;i<=4;i++) {
z = "option" + i ;
document.all[z].src = "http://evrsoft.com/img/radio-buttons/off.gif" ;
}
document.all[x].src = "http://evrsoft.com/img/radio-buttons/on.gif"
document.all.action.value = x
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<input type=text name=action value="option1">
<p>
<font face="Tahoma" size="1">
<a href="#"><img border="0" src="http://evrsoft.com/img/radio-buttons/on.gif" width="11" height="11" name=option1 onclick=Check(this.name,"")></a>
option 1</font></p>
<p>
<font face="Tahoma" size="1"><a href="#">
<img border="0" src="http://evrsoft.com/img/radio-buttons/off.gif" width="11" height="11" name=option2 onclick=Check(this.name,"")></a>
option 2</font></p>
<p>
<font face="Tahoma" size="1">
<a href="#"><img border="0" src="http://evrsoft.com/img/radio-buttons/off.gif" width="11" height="11" name=option3 onclick=Check(this.name,"")></a>
option 3</font></p>
<p>
<font face="Tahoma" size="1">
<a href="#"><img border="0" src="http://evrsoft.com/img/radio-buttons/off.gif" width="11" height="11" name=option4 onclick=Check(this.name,"")></a>
option 4</font></p>
<!-- END OF SCRIPT -->
<!/PREVIEW>
<!RELATED>button.zip<!/RELATED>